package com.yanqu.road.entity.activity.hsisland.config;

import com.yanqu.road.utils.string.StringUtils;
import java.util.List;
import com.yanqu.road.entity.FieldTypeAnnotation;

@FieldTypeAnnotation(tableName = "t_s_activity_hsisland_buff")
public class HsIslandBuffConfig {

    @FieldTypeAnnotation(desc = "活动id", select = true, update = true)
    private int activityId;

    @FieldTypeAnnotation(desc = "ID", select = true, update = true)
    private int id;

    @FieldTypeAnnotation(desc = "技能类型")
    private int type;

    @FieldTypeAnnotation(desc = "名称")
    private String name;

    @FieldTypeAnnotation(desc = "描述")
    private String desc;

    @FieldTypeAnnotation(desc = "技能参数")
    private String param;
    List<Integer> paramList;

    @FieldTypeAnnotation(desc = "生效次数")
    private int times;

    @FieldTypeAnnotation(desc = "权重")
    private int weight;

    public int getActivityId() {
        return activityId;
    }

    public void setActivityId(int activityId) {
        this.activityId = activityId;
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public int getType() {
        return type;
    }

    public void setType(int type) {
        this.type = type;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public String getDesc() {
        return desc;
    }

    public void setDesc(String desc) {
        this.desc = desc;
    }

    public String getParam() {
        return param;
    }

    public void setParam(String param) {
        this.param = param;
        if (!StringUtils.isNullOrEmpty(param)) {
            this.paramList = StringUtils.stringToIntegerList(param, "\\|");
        }
    }

    public List<Integer> getParamList() {
        return paramList;
    }

    public int getTimes() {
        return times;
    }

    public void setTimes(int times) {
        this.times = times;
    }

    public int getWeight() {
        return weight;
    }

    public void setWeight(int weight) {
        this.weight = weight;
    }
}
